<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-CPP: TComboBox类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-CPP
   </div>
   <div id="projectbrief">AWTK CPP API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="class_t_combo_box-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">TComboBox类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a>&gt;</code></p>
<div class="dynheader">
类 TComboBox 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_t_combo_box.png" usemap="#TComboBox_map" alt=""/>
  <map id="TComboBox_map" name="TComboBox_map">
<area href="class_t_edit.html" alt="TEdit" shape="rect" coords="0,56,93,80"/>
<area href="class_t_combo_box_ex.html" alt="TComboBoxEx" shape="rect" coords="0,168,93,192"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:afbcea6721d6b3b2932c15cda647aad26"><td class="memItemLeft" align="right" valign="top"><a id="afbcea6721d6b3b2932c15cda647aad26"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TComboBox</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:afbcea6721d6b3b2932c15cda647aad26"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2e36fc3e62aac4494e3c2586b9bf16cd"><td class="memItemLeft" align="right" valign="top"><a id="a2e36fc3e62aac4494e3c2586b9bf16cd"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TComboBox</b> (const combo_box_t *nativeObj)</td></tr>
<tr class="separator:a2e36fc3e62aac4494e3c2586b9bf16cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91ac95c3a7bdd1daa48f079a404340e5"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_combo_box.html#a91ac95c3a7bdd1daa48f079a404340e5">SetOpenWindow</a> (const char *open_window)</td></tr>
<tr class="separator:a91ac95c3a7bdd1daa48f079a404340e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1f1c17a51afe25ad4e761c6ea75a6de"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_combo_box.html#af1f1c17a51afe25ad4e761c6ea75a6de">SetThemeOfPopup</a> (const char *theme_of_popup)</td></tr>
<tr class="separator:af1f1c17a51afe25ad4e761c6ea75a6de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29786cff3f4704b5273beda838fd5ec5"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_combo_box.html#a29786cff3f4704b5273beda838fd5ec5">ResetOptions</a> ()</td></tr>
<tr class="separator:a29786cff3f4704b5273beda838fd5ec5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b89e7c3d2905fd4536202dca5f0b83d"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_combo_box.html#a1b89e7c3d2905fd4536202dca5f0b83d">CountOptions</a> ()</td></tr>
<tr class="separator:a1b89e7c3d2905fd4536202dca5f0b83d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af51fbcbe90462444e7a5ef9925946edc"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_combo_box.html#af51fbcbe90462444e7a5ef9925946edc">SetSelectedIndex</a> (uint32_t index)</td></tr>
<tr class="separator:af51fbcbe90462444e7a5ef9925946edc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab75b4e80180a100bd4578df429b83932"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_combo_box.html#ab75b4e80180a100bd4578df429b83932">SetSelectedIndexByText</a> (const char *text)</td></tr>
<tr class="separator:ab75b4e80180a100bd4578df429b83932"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24b9f2ab3ca04762bcd40898cef73260"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_combo_box.html#a24b9f2ab3ca04762bcd40898cef73260">SetLocalizeOptions</a> (bool localize_options)</td></tr>
<tr class="separator:a24b9f2ab3ca04762bcd40898cef73260"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0597efb9e21eeb0d956af9c49da9da85"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_combo_box.html#a0597efb9e21eeb0d956af9c49da9da85">SetValue</a> (int32_t value)</td></tr>
<tr class="separator:a0597efb9e21eeb0d956af9c49da9da85"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a85e40c0c76a3d39519b8d8bf77caf61b"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_combo_box.html#a85e40c0c76a3d39519b8d8bf77caf61b">SetItemHeight</a> (uint32_t item_height)</td></tr>
<tr class="separator:a85e40c0c76a3d39519b8d8bf77caf61b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a912f99e90e457cd5e7c7530c80651ab0"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_combo_box.html#a912f99e90e457cd5e7c7530c80651ab0">AppendOption</a> (int32_t value, const char *text)</td></tr>
<tr class="separator:a912f99e90e457cd5e7c7530c80651ab0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac6e7604a363dfe75dbcf3124941a6e64"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_combo_box.html#ac6e7604a363dfe75dbcf3124941a6e64">RemoveOption</a> (int32_t value)</td></tr>
<tr class="separator:ac6e7604a363dfe75dbcf3124941a6e64"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53d4e413648134ecc0034b68abf53ecb"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_combo_box.html#a53d4e413648134ecc0034b68abf53ecb">RemoveOptionByIndex</a> (uint32_t index)</td></tr>
<tr class="separator:a53d4e413648134ecc0034b68abf53ecb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6e733d982bf2f0267da6671427f580e"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_combo_box.html#ab6e733d982bf2f0267da6671427f580e">SetOptions</a> (const char *options)</td></tr>
<tr class="separator:ab6e733d982bf2f0267da6671427f580e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8412bb958ea6145d5dbe3dbc3dec3db2"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_combo_box.html#a8412bb958ea6145d5dbe3dbc3dec3db2">GetValueInt</a> ()</td></tr>
<tr class="separator:a8412bb958ea6145d5dbe3dbc3dec3db2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab60748113066984de4b2d0f0c9776130"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_combo_box.html#ab60748113066984de4b2d0f0c9776130">HasOptionText</a> (const char *text)</td></tr>
<tr class="separator:ab60748113066984de4b2d0f0c9776130"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a35132945ed744824e474ae06bf6adf98"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_combo_box.html#a35132945ed744824e474ae06bf6adf98">GetTextValue</a> ()</td></tr>
<tr class="separator:a35132945ed744824e474ae06bf6adf98"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aec27c7cf85834b600cf18099480c3f13"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_combo_box.html#aec27c7cf85834b600cf18099480c3f13">GetTextOfSelected</a> ()</td></tr>
<tr class="separator:aec27c7cf85834b600cf18099480c3f13"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff202978e9c9b804f3f2d79ae9908525"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_combo_box.html#aff202978e9c9b804f3f2d79ae9908525">GetOpenWindow</a> () const</td></tr>
<tr class="separator:aff202978e9c9b804f3f2d79ae9908525"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2c263c1368a370cd26550b8079204af"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_combo_box.html#ab2c263c1368a370cd26550b8079204af">GetThemeOfPopup</a> () const</td></tr>
<tr class="separator:ab2c263c1368a370cd26550b8079204af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f36a2b914ab3371f3320e40cf193950"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_combo_box.html#a7f36a2b914ab3371f3320e40cf193950">GetSelectedIndex</a> () const</td></tr>
<tr class="separator:a7f36a2b914ab3371f3320e40cf193950"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1bba5e2fa5e255b3d7c966720775d363"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_combo_box.html#a1bba5e2fa5e255b3d7c966720775d363">GetValue</a> () const</td></tr>
<tr class="separator:a1bba5e2fa5e255b3d7c966720775d363"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a667e7105de9e71836b447f53adc16abc"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_combo_box.html#a667e7105de9e71836b447f53adc16abc">GetLocalizeOptions</a> () const</td></tr>
<tr class="separator:a667e7105de9e71836b447f53adc16abc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e800f92a4f5843ff673789b4d5b603a"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_combo_box.html#a8e800f92a4f5843ff673789b4d5b603a">GetOptions</a> () const</td></tr>
<tr class="separator:a8e800f92a4f5843ff673789b4d5b603a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae18167e875cae3793274c8336a1183b5"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_combo_box.html#ae18167e875cae3793274c8336a1183b5">GetItemHeight</a> () const</td></tr>
<tr class="separator:ae18167e875cae3793274c8336a1183b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_t_edit"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_t_edit')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="class_t_edit.html">TEdit</a></td></tr>
<tr class="memitem:a83bcec0ab6b236b5e1c23140341a51c4 inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top"><a id="a83bcec0ab6b236b5e1c23140341a51c4"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TEdit</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:a83bcec0ab6b236b5e1c23140341a51c4 inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b796c2692138c8ea30018e9db951650 inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top"><a id="a1b796c2692138c8ea30018e9db951650"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TEdit</b> (const edit_t *nativeObj)</td></tr>
<tr class="separator:a1b796c2692138c8ea30018e9db951650 inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a800b612a6de458ec938721f23326f58c inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#a800b612a6de458ec938721f23326f58c">GetInt</a> ()</td></tr>
<tr class="separator:a800b612a6de458ec938721f23326f58c inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ea74a1b250df13cb77148976f4dc3dd inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#a3ea74a1b250df13cb77148976f4dc3dd">GetDouble</a> ()</td></tr>
<tr class="separator:a3ea74a1b250df13cb77148976f4dc3dd inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a928635cb9975867d431bfd034ad8319b inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#a928635cb9975867d431bfd034ad8319b">SetInt</a> (int32_t value)</td></tr>
<tr class="separator:a928635cb9975867d431bfd034ad8319b inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6236322f2c2e9210c273354bb48c0c70 inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#a6236322f2c2e9210c273354bb48c0c70">SetDouble</a> (double value)</td></tr>
<tr class="separator:a6236322f2c2e9210c273354bb48c0c70 inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb36f874c08ab3e0ccc631b3137257d1 inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#adb36f874c08ab3e0ccc631b3137257d1">SetDoubleEx</a> (const char *format, double value)</td></tr>
<tr class="separator:adb36f874c08ab3e0ccc631b3137257d1 inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acbf7d2344674af49be26151ff7cef041 inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#acbf7d2344674af49be26151ff7cef041">SetTextLimit</a> (uint32_t min, uint32_t max)</td></tr>
<tr class="separator:acbf7d2344674af49be26151ff7cef041 inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f943d75a18a5a6b577da6111e0e4b24 inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#a7f943d75a18a5a6b577da6111e0e4b24">SetIntLimit</a> (int32_t min, int32_t max, uint32_t step)</td></tr>
<tr class="separator:a7f943d75a18a5a6b577da6111e0e4b24 inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07a34cc8da8e59b6aa3f4a8f3343692e inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#a07a34cc8da8e59b6aa3f4a8f3343692e">SetFloatLimit</a> (double min, double max, double step)</td></tr>
<tr class="separator:a07a34cc8da8e59b6aa3f4a8f3343692e inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad444747ab31a42e1cf170fc1331d6eb1 inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#ad444747ab31a42e1cf170fc1331d6eb1">SetReadonly</a> (bool readonly)</td></tr>
<tr class="separator:ad444747ab31a42e1cf170fc1331d6eb1 inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a43b2589ab5eb1b518afa75e4870550a3 inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#a43b2589ab5eb1b518afa75e4870550a3">SetCancelable</a> (bool cancelable)</td></tr>
<tr class="separator:a43b2589ab5eb1b518afa75e4870550a3 inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adcbcb29229a00fbd7ee8bd4aa74c61de inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#adcbcb29229a00fbd7ee8bd4aa74c61de">SetAutoFix</a> (bool auto_fix)</td></tr>
<tr class="separator:adcbcb29229a00fbd7ee8bd4aa74c61de inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2804ed044afbfa2e52c5134c6d61aa17 inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#a2804ed044afbfa2e52c5134c6d61aa17">SetSelectNoneWhenFocused</a> (bool select_none_when_focused)</td></tr>
<tr class="separator:a2804ed044afbfa2e52c5134c6d61aa17 inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e0cc4ee6e18087696865c15a74e9381 inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#a9e0cc4ee6e18087696865c15a74e9381">SetOpenImWhenFocused</a> (bool open_im_when_focused)</td></tr>
<tr class="separator:a9e0cc4ee6e18087696865c15a74e9381 inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b58f2cb68baaddfe67f202a20ba46c1 inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#a9b58f2cb68baaddfe67f202a20ba46c1">SetCloseImWhenBlured</a> (bool close_im_when_blured)</td></tr>
<tr class="separator:a9b58f2cb68baaddfe67f202a20ba46c1 inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07719518ea4a28b57e7874d6556dbcbe inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#a07719518ea4a28b57e7874d6556dbcbe">SetInputType</a> (input_type_t type)</td></tr>
<tr class="separator:a07719518ea4a28b57e7874d6556dbcbe inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:accabc88af1bd5f92c102e7d0ae90d5f4 inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#accabc88af1bd5f92c102e7d0ae90d5f4">SetActionText</a> (const char *action_text)</td></tr>
<tr class="separator:accabc88af1bd5f92c102e7d0ae90d5f4 inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb4af79c5bed07266187f01b89a998a6 inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#aeb4af79c5bed07266187f01b89a998a6">SetTips</a> (const char *tips)</td></tr>
<tr class="separator:aeb4af79c5bed07266187f01b89a998a6 inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa6434df850d2d74735c9c8acfeb2581f inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#aa6434df850d2d74735c9c8acfeb2581f">SetTrTips</a> (const char *tr_tips)</td></tr>
<tr class="separator:aa6434df850d2d74735c9c8acfeb2581f inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a583636ab239dafaee61649b4203c9309 inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#a583636ab239dafaee61649b4203c9309">SetKeyboard</a> (const char *keyboard)</td></tr>
<tr class="separator:a583636ab239dafaee61649b4203c9309 inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af67611a4bfdd8cc10cc5b366b264147e inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#af67611a4bfdd8cc10cc5b366b264147e">SetPasswordVisible</a> (bool password_visible)</td></tr>
<tr class="separator:af67611a4bfdd8cc10cc5b366b264147e inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5911767134a7130de49b877e9fc1964 inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#af5911767134a7130de49b877e9fc1964">SetFocus</a> (bool focus)</td></tr>
<tr class="separator:af5911767134a7130de49b877e9fc1964 inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc7a8787885c1af4807918b4803d10a0 inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#afc7a8787885c1af4807918b4803d10a0">SetCursor</a> (uint32_t cursor)</td></tr>
<tr class="separator:afc7a8787885c1af4807918b4803d10a0 inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54d18c2cb216be5ebe591cad448c8483 inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#a54d18c2cb216be5ebe591cad448c8483">GetCursor</a> ()</td></tr>
<tr class="separator:a54d18c2cb216be5ebe591cad448c8483 inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9bf23bda2694a7f2529f87f092889b4b inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#a9bf23bda2694a7f2529f87f092889b4b">SetSelect</a> (uint32_t start, uint32_t end)</td></tr>
<tr class="separator:a9bf23bda2694a7f2529f87f092889b4b inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf008c83829a4317556f1a4bfa2d06f7 inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#acf008c83829a4317556f1a4bfa2d06f7">GetSelectedText</a> ()</td></tr>
<tr class="separator:acf008c83829a4317556f1a4bfa2d06f7 inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a21b711e8d494ca01cb5a3169f536b3ce inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#a21b711e8d494ca01cb5a3169f536b3ce">GetTips</a> () const</td></tr>
<tr class="separator:a21b711e8d494ca01cb5a3169f536b3ce inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58485d30ef1da24cb25853b3992239da inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#a58485d30ef1da24cb25853b3992239da">GetTrTips</a> () const</td></tr>
<tr class="separator:a58485d30ef1da24cb25853b3992239da inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa8de6404e2ac04f2736edd7dd3854c2d inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#aa8de6404e2ac04f2736edd7dd3854c2d">GetActionText</a> () const</td></tr>
<tr class="separator:aa8de6404e2ac04f2736edd7dd3854c2d inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9290a2fc8d16239266551958b4e0c4c0 inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#a9290a2fc8d16239266551958b4e0c4c0">GetKeyboard</a> () const</td></tr>
<tr class="separator:a9290a2fc8d16239266551958b4e0c4c0 inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaed7dd1cf6132e65e5f26959d8e77614 inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#aaed7dd1cf6132e65e5f26959d8e77614">GetMin</a> () const</td></tr>
<tr class="separator:aaed7dd1cf6132e65e5f26959d8e77614 inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e16709a1dd8458cba0d56808d2f6863 inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#a4e16709a1dd8458cba0d56808d2f6863">GetMax</a> () const</td></tr>
<tr class="separator:a4e16709a1dd8458cba0d56808d2f6863 inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a20b1206f028a9e138abb24eb1043abda inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#a20b1206f028a9e138abb24eb1043abda">GetStep</a> () const</td></tr>
<tr class="separator:a20b1206f028a9e138abb24eb1043abda inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e81845aa7ea582699641556f4dfef9d inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">input_type_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#a7e81845aa7ea582699641556f4dfef9d">GetInputType</a> () const</td></tr>
<tr class="separator:a7e81845aa7ea582699641556f4dfef9d inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80da6d8e8194c93aed9d992c4ebce06c inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#a80da6d8e8194c93aed9d992c4ebce06c">GetReadonly</a> () const</td></tr>
<tr class="separator:a80da6d8e8194c93aed9d992c4ebce06c inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae2e487c50ee16e9861ff2b98c3c896e1 inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#ae2e487c50ee16e9861ff2b98c3c896e1">GetPasswordVisible</a> () const</td></tr>
<tr class="separator:ae2e487c50ee16e9861ff2b98c3c896e1 inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd148cd2cc2f7a92ae330c22ea47add1 inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#afd148cd2cc2f7a92ae330c22ea47add1">GetAutoFix</a> () const</td></tr>
<tr class="separator:afd148cd2cc2f7a92ae330c22ea47add1 inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af461baf1bb7f1561275d8211890f4dd7 inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#af461baf1bb7f1561275d8211890f4dd7">GetSelectNoneWhenFocused</a> () const</td></tr>
<tr class="separator:af461baf1bb7f1561275d8211890f4dd7 inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24107e61b22ed49402e7db7ccdbf80f9 inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#a24107e61b22ed49402e7db7ccdbf80f9">GetOpenImWhenFocused</a> () const</td></tr>
<tr class="separator:a24107e61b22ed49402e7db7ccdbf80f9 inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a048fb5f8ac4a99a1575b71107d8e6f75 inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#a048fb5f8ac4a99a1575b71107d8e6f75">GetCloseImWhenBlured</a> () const</td></tr>
<tr class="separator:a048fb5f8ac4a99a1575b71107d8e6f75 inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff3d12d20a9dfd522d173bdbdfcc385f inherit pub_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#aff3d12d20a9dfd522d173bdbdfcc385f">GetCancelable</a> () const</td></tr>
<tr class="separator:aff3d12d20a9dfd522d173bdbdfcc385f inherit pub_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:ab8e2e0f2ff237f8df04695becb55fc77"><td class="memItemLeft" align="right" valign="top"><a id="ab8e2e0f2ff237f8df04695becb55fc77"></a>
static <a class="el" href="class_t_combo_box.html">TComboBox</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:ab8e2e0f2ff237f8df04695becb55fc77"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d7fa0d2486bc4320c88324ab75c7e6a"><td class="memItemLeft" align="right" valign="top"><a id="a3d7fa0d2486bc4320c88324ab75c7e6a"></a>
static <a class="el" href="class_t_combo_box.html">TComboBox</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const widget_t *nativeObj)</td></tr>
<tr class="separator:a3d7fa0d2486bc4320c88324ab75c7e6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f2ae858c9cff997cfc0252449cdfb1e"><td class="memItemLeft" align="right" valign="top"><a id="a3f2ae858c9cff997cfc0252449cdfb1e"></a>
static <a class="el" href="class_t_combo_box.html">TComboBox</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (TWidget &amp;obj)</td></tr>
<tr class="separator:a3f2ae858c9cff997cfc0252449cdfb1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f680199daae70f3e0f375949036e798"><td class="memItemLeft" align="right" valign="top"><a id="a6f680199daae70f3e0f375949036e798"></a>
static <a class="el" href="class_t_combo_box.html">TComboBox</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const TWidget &amp;obj)</td></tr>
<tr class="separator:a6f680199daae70f3e0f375949036e798"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3163eb491db2de147d2c6f82a33c5b96"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_combo_box.html#a3163eb491db2de147d2c6f82a33c5b96">Create</a> (TWidget &amp;parent, xy_t x, xy_t y, wh_t w, wh_t h)</td></tr>
<tr class="separator:a3163eb491db2de147d2c6f82a33c5b96"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_static_methods_class_t_edit"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_class_t_edit')"><img src="closed.png" alt="-"/>&#160;静态 Public 成员函数 继承自 <a class="el" href="class_t_edit.html">TEdit</a></td></tr>
<tr class="memitem:acb761872c5edad90c05302873e0e41ef inherit pub_static_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top"><a id="acb761872c5edad90c05302873e0e41ef"></a>
static <a class="el" href="class_t_edit.html">TEdit</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:acb761872c5edad90c05302873e0e41ef inherit pub_static_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a237bb23f151ac979121dfb5dd24594ed inherit pub_static_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top"><a id="a237bb23f151ac979121dfb5dd24594ed"></a>
static <a class="el" href="class_t_edit.html">TEdit</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const widget_t *nativeObj)</td></tr>
<tr class="separator:a237bb23f151ac979121dfb5dd24594ed inherit pub_static_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a04264ec75fb97fbca8de622b55265f9c inherit pub_static_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top"><a id="a04264ec75fb97fbca8de622b55265f9c"></a>
static <a class="el" href="class_t_edit.html">TEdit</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (TWidget &amp;obj)</td></tr>
<tr class="separator:a04264ec75fb97fbca8de622b55265f9c inherit pub_static_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb40203659c19cdabac32529cf2ce2bb inherit pub_static_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top"><a id="acb40203659c19cdabac32529cf2ce2bb"></a>
static <a class="el" href="class_t_edit.html">TEdit</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const TWidget &amp;obj)</td></tr>
<tr class="separator:acb40203659c19cdabac32529cf2ce2bb inherit pub_static_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26b20f85d8539f92dfaf0732e5cc8b14 inherit pub_static_methods_class_t_edit"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_edit.html#a26b20f85d8539f92dfaf0732e5cc8b14">Create</a> (TWidget &amp;parent, xy_t x, xy_t y, wh_t w, wh_t h)</td></tr>
<tr class="separator:a26b20f85d8539f92dfaf0732e5cc8b14 inherit pub_static_methods_class_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>下拉列表控件。</p>
<p>点击右边的按钮，可弹出一个下拉列表，从中选择一项作为当前的值。</p>
<p>combo_box_t是edit\_t的子类控件，edit_t的函数均适用于combo_box_t控件。</p>
<p>在xml中使用"combo_box"标签创建下拉列表控件。</p>
<p>列表选项可以直接写在"options"属性中。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">combo_box</span> <span class="keyword">readonly</span>=<span class="stringliteral">&quot;true&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;10&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;bottom:5&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;200&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">tr_text</span>=<span class="stringliteral">&quot;ok&quot;</span></div>
<div class="line">*<span class="keyword">options</span>=<span class="stringliteral">&quot;1:ok;2:cancel;&quot;</span>/&gt;</div>
</div><!-- fragment --><p>列表选项也可以放在独立的窗口中，用属性"open_window"指定窗口的名称。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">combo_box</span> <span class="keyword">open_window</span>=<span class="stringliteral">&quot;language&quot;</span> <span class="keyword">readonly</span>=<span class="stringliteral">&quot;true&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;10&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;bottom:50&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;200&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;30&quot;</span></div>
<div class="line">*<span class="keyword">tr_text</span>=<span class="stringliteral">&quot;english&quot;</span>/&gt;</div>
</div><!-- fragment --><p>language.xml:</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">popup</span> <span class="keyword">close_when_click_outside</span>=<span class="stringliteral">&quot;true&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;80&quot;</span></div>
<div class="line">*&lt;<span class="keywordtype">list_view</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span>  <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">item_height</span>=<span class="stringliteral">&quot;30&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">scroll_view</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;view&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span>  <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;-12&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">combo_box_item</span> <span class="keyword">tr_text</span>=<span class="stringliteral">&quot;english&quot;</span>/&gt;</div>
<div class="line">*&lt;<span class="keywordtype">combo_box_item</span> <span class="keyword">tr_text</span>=<span class="stringliteral">&quot;chinese&quot;</span> /&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">scroll_view</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">scroll_bar_d</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;bar&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;right&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;12&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">value</span>=<span class="stringliteral">&quot;0&quot;</span>/&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">list_view</span>&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">popup</span>&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>更多用法请参考：<a href="https://github.com/zlgopen/awtk/blob/master/design/default/ui/combo_box.xml">combo_box.xml</a> </p>
</blockquote>
<p>如果在文本比较长时，希望在获得焦点时文本自动滚动，可以放入一个hscroll_label为子控件，并命名为"value"。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">combo_box</span> <span class="keyword">left_margin</span>=<span class="stringliteral">&quot;6&quot;</span> <span class="keyword">readonly</span>=<span class="stringliteral">&quot;true&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;10&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;50&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;80&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">options</span>=<span class="stringliteral">&quot;leftttttttttt;centerrrrrrrrrrrrrrrr;rightttttttttt;&quot;</span></div>
<div class="line">*<span class="keyword">selected_index</span>=<span class="stringliteral">&quot;1&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">hscroll_label</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;-30&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span></div>
<div class="line">*<span class="keyword">name</span>=<span class="stringliteral">&quot;value&quot;</span></div>
<div class="line">*<span class="keyword">lull</span>=<span class="stringliteral">&quot;1000&quot;</span></div>
<div class="line">*<span class="keyword">loop</span>=<span class="stringliteral">&quot;true&quot;</span></div>
<div class="line">*<span class="keyword">yoyo</span>=<span class="stringliteral">&quot;true&quot;</span></div>
<div class="line">*<span class="keyword">ellipses</span>=<span class="stringliteral">&quot;true&quot;</span></div>
<div class="line">*<span class="keyword">only_parent_focus</span>=<span class="stringliteral">&quot;true&quot;</span>/&gt;</div>
<div class="line">*&lt;<span class="keywordtype">button</span> <span class="keyword">style</span>=<span class="stringliteral">&quot;combobox_down&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;right:5&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;middle&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;20&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;20&quot;</span>/&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">combo_box</span>&gt;</div>
</div><!-- fragment --><p>在c代码中使用函数combo_box_create创建下拉列表控件。如：</p>
<p>创建之后：</p>
<p>用combo_box_set_options设置可选项目。 用combo_box_set_selected_index设置缺省项。</p>
<blockquote class="doxtable">
<p>完整示例请参考：<a href="https://github.com/zlgopen/awtk-c-demos/blob/master/demos/combo_box.c">combo_box  demo</a></p>
<p>可用通过style来设置控件的显示风格，如字体的大小和颜色等等。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">combo_box</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">style</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;default&quot;</span> <span class="keyword">border_color</span>=<span class="stringliteral">&quot;#a0a0a0&quot;</span>  <span class="keyword">text_color</span>=<span class="stringliteral">&quot;black&quot;</span> <span class="keyword">text_align_h</span>=<span class="stringliteral">&quot;left&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">normal</span>     <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#f0f0f0&quot;</span> /&gt;</div>
<div class="line">*&lt;<span class="keywordtype">focused</span>    <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#f0f0f0&quot;</span> <span class="keyword">border_color</span>=<span class="stringliteral">&quot;black&quot;</span>/&gt;</div>
<div class="line">*&lt;<span class="keywordtype">empty</span>      <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#f0f0f0&quot;</span> <span class="keyword">text_color</span>=<span class="stringliteral">&quot;#a0a0a0&quot;</span> /&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">style</span>&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">combo_box</span>&gt;</div>
</div><!-- fragment --><p>1.combobox的下拉按钮的style名称为combobox_down，可以在窗体样式文件中设置。</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">button</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">style</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;combobox_down&quot;</span> <span class="keyword">border_color</span>=<span class="stringliteral">&quot;#a0a0a0&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">normal</span>     <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#f0f0f0&quot;</span> <span class="keyword">icon</span>=<span class="stringliteral">&quot;arrow_down_n&quot;</span>/&gt;</div>
<div class="line">*&lt;<span class="keywordtype">pressed</span>    <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#c0c0c0&quot;</span> <span class="keyword">icon</span>=<span class="stringliteral">&quot;arrow_down_p&quot;</span>/&gt;</div>
<div class="line">*&lt;<span class="keywordtype">over</span>       <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#e0e0e0&quot;</span> <span class="keyword">icon</span>=<span class="stringliteral">&quot;arrow_down_o&quot;</span>/&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">style</span>&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">button</span>&gt;</div>
</div><!-- fragment --><p>2.combobox的弹出popup窗口的style名称为combobox_popup，可以在窗体样式文件中设置。</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">popup</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">style</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;combobox_popup&quot;</span> <span class="keyword">border_color</span>=<span class="stringliteral">&quot;red&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">normal</span> <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#808080&quot;</span>/&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">style</span>&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">popup</span>&gt;</div>
</div><!-- fragment --><p> 3.combobox的下拉框中的列表项的样式，可以设置combo_box_item的style来改变。</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">combo_box_item</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">style</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;default&quot;</span> <span class="keyword">icon_at</span>=<span class="stringliteral">&quot;left&quot;</span> <span class="keyword">text_color</span>=<span class="stringliteral">&quot;black&quot;</span> <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#f0f0f0&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">normal</span>  <span class="keyword">icon</span>=<span class="stringliteral">&quot;empty&quot;</span>/&gt;</div>
<div class="line">*&lt;<span class="keywordtype">focused</span> <span class="keyword">icon</span>=<span class="stringliteral">&quot;empty&quot;</span> <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#1296db&quot;</span> <span class="keyword">text_color</span>=<span class="stringliteral">&quot;gold&quot;</span> /&gt;</div>
<div class="line">*&lt;<span class="keywordtype">pressed</span> <span class="keyword">icon</span>=<span class="stringliteral">&quot;empty&quot;</span> <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#1296db&quot;</span> <span class="keyword">text_color</span>=<span class="stringliteral">&quot;white&quot;</span> /&gt;</div>
<div class="line">*&lt;<span class="keywordtype">over</span>    <span class="keyword">icon</span>=<span class="stringliteral">&quot;empty&quot;</span> <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#1296db&quot;</span> <span class="keyword">text_color</span>=<span class="stringliteral">&quot;white&quot;</span> /&gt;</div>
<div class="line">*&lt;<span class="keywordtype">normal_of_checked</span>  <span class="keyword">icon</span>=<span class="stringliteral">&quot;check&quot;</span>/&gt;</div>
<div class="line">*&lt;<span class="keywordtype">focused_of_checked</span>  <span class="keyword">icon</span>=<span class="stringliteral">&quot;check&quot;</span> <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#1296db&quot;</span> <span class="keyword">text_color</span>=<span class="stringliteral">&quot;gold&quot;</span>/&gt;</div>
<div class="line">*&lt;<span class="keywordtype">pressed_of_checked</span> <span class="keyword">icon</span>=<span class="stringliteral">&quot;check&quot;</span> <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#1296db&quot;</span> <span class="keyword">text_color</span>=<span class="stringliteral">&quot;white&quot;</span> /&gt;</div>
<div class="line">*&lt;<span class="keywordtype">over_of_checked</span>    <span class="keyword">icon</span>=<span class="stringliteral">&quot;check&quot;</span> <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#1296db&quot;</span> <span class="keyword">text_color</span>=<span class="stringliteral">&quot;white&quot;</span> /&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">style</span>&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">combo_box_item</span>&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>更多用法请参考：<a href="https://github.com/zlgopen/awtk/blob/master/design/default/styles/default.xml#L422">theme  default</a> </p>
</blockquote>
</blockquote>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a912f99e90e457cd5e7c7530c80651ab0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a912f99e90e457cd5e7c7530c80651ab0">&#9670;&nbsp;</a></span>AppendOption()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TComboBox::AppendOption </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>text</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>追加一个选项。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>值。 </td></tr>
    <tr><td class="paramname">text</td><td>文本。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a1b89e7c3d2905fd4536202dca5f0b83d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1b89e7c3d2905fd4536202dca5f0b83d">&#9670;&nbsp;</a></span>CountOptions()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t TComboBox::CountOptions </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取选项个数。</p>
<dl class="section return"><dt>返回</dt><dd>返回选项个数。 </dd></dl>

</div>
</div>
<a id="a3163eb491db2de147d2c6f82a33c5b96"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3163eb491db2de147d2c6f82a33c5b96">&#9670;&nbsp;</a></span>Create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TWidget TComboBox::Create </td>
          <td>(</td>
          <td class="paramtype">TWidget &amp;&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建combo_box对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="ae18167e875cae3793274c8336a1183b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae18167e875cae3793274c8336a1183b5">&#9670;&nbsp;</a></span>GetItemHeight()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t TComboBox::GetItemHeight </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>下拉选项的高度。如果open_window为空，则使用缺省高度。 </p>

</div>
</div>
<a id="a667e7105de9e71836b447f53adc16abc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a667e7105de9e71836b447f53adc16abc">&#9670;&nbsp;</a></span>GetLocalizeOptions()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TComboBox::GetLocalizeOptions </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>是否本地化(翻译)选项(缺省为TRUE)。 </p>

</div>
</div>
<a id="aff202978e9c9b804f3f2d79ae9908525"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aff202978e9c9b804f3f2d79ae9908525">&#9670;&nbsp;</a></span>GetOpenWindow()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TComboBox::GetOpenWindow </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>为点击按钮时，要打开窗口的名称。 </p>

</div>
</div>
<a id="a8e800f92a4f5843ff673789b4d5b603a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8e800f92a4f5843ff673789b4d5b603a">&#9670;&nbsp;</a></span>GetOptions()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TComboBox::GetOptions </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置可选项(冒号分隔值和文本，分号分隔选项，如:1:red;2:green;3:blue)。 </p><blockquote class="doxtable">
<p>如果数据本身中有英文冒号(:)和英文分号(;)，请用16进制转义。</p><ul>
<li>英文冒号(:)写为\x3a</li>
<li>英文冒号(;)写为\x3b </li>
</ul>
</blockquote>

</div>
</div>
<a id="a7f36a2b914ab3371f3320e40cf193950"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f36a2b914ab3371f3320e40cf193950">&#9670;&nbsp;</a></span>GetSelectedIndex()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t TComboBox::GetSelectedIndex </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>当前选中的选项。 </p>

</div>
</div>
<a id="aec27c7cf85834b600cf18099480c3f13"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aec27c7cf85834b600cf18099480c3f13">&#9670;&nbsp;</a></span>GetTextOfSelected()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char * TComboBox::GetTextOfSelected </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取combo_box当前选中项目的文本(原生非翻译的文本)。</p>
<dl class="section return"><dt>返回</dt><dd>返回文本。 </dd></dl>

</div>
</div>
<a id="a35132945ed744824e474ae06bf6adf98"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a35132945ed744824e474ae06bf6adf98">&#9670;&nbsp;</a></span>GetTextValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char * TComboBox::GetTextValue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取combo_box的文本(可能是翻译后的文本)。</p>
<dl class="section return"><dt>返回</dt><dd>返回文本。 </dd></dl>

</div>
</div>
<a id="ab2c263c1368a370cd26550b8079204af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab2c263c1368a370cd26550b8079204af">&#9670;&nbsp;</a></span>GetThemeOfPopup()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TComboBox::GetThemeOfPopup </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>弹出窗口的主题(对应的style文件必须存在)，方便为不同combo box的弹出窗口指定不同的样式。 </p>

</div>
</div>
<a id="a1bba5e2fa5e255b3d7c966720775d363"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1bba5e2fa5e255b3d7c966720775d363">&#9670;&nbsp;</a></span>GetValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t TComboBox::GetValue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>值。 </p>

</div>
</div>
<a id="a8412bb958ea6145d5dbe3dbc3dec3db2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8412bb958ea6145d5dbe3dbc3dec3db2">&#9670;&nbsp;</a></span>GetValueInt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t TComboBox::GetValueInt </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取combo_box的值。</p>
<dl class="section return"><dt>返回</dt><dd>返回值。 </dd></dl>

</div>
</div>
<a id="ab60748113066984de4b2d0f0c9776130"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab60748113066984de4b2d0f0c9776130">&#9670;&nbsp;</a></span>HasOptionText()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TComboBox::HasOptionText </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>检查选项中是否存在指定的文本。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>option text</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回TRUE表示存在，否则表示不存在。 </dd></dl>

</div>
</div>
<a id="ac6e7604a363dfe75dbcf3124941a6e64"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac6e7604a363dfe75dbcf3124941a6e64">&#9670;&nbsp;</a></span>RemoveOption()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TComboBox::RemoveOption </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>删除第一个值为value的选项。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>选项的值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a53d4e413648134ecc0034b68abf53ecb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a53d4e413648134ecc0034b68abf53ecb">&#9670;&nbsp;</a></span>RemoveOptionByIndex()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TComboBox::RemoveOptionByIndex </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>删除指定序数的选项。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>选项的序数(0表示第一个)。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a29786cff3f4704b5273beda838fd5ec5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a29786cff3f4704b5273beda838fd5ec5">&#9670;&nbsp;</a></span>ResetOptions()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TComboBox::ResetOptions </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>重置所有选项。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a85e40c0c76a3d39519b8d8bf77caf61b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a85e40c0c76a3d39519b8d8bf77caf61b">&#9670;&nbsp;</a></span>SetItemHeight()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TComboBox::SetItemHeight </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>item_height</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置item高度。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">item_height</td><td>item的高度。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a24b9f2ab3ca04762bcd40898cef73260"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a24b9f2ab3ca04762bcd40898cef73260">&#9670;&nbsp;</a></span>SetLocalizeOptions()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TComboBox::SetLocalizeOptions </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>localize_options</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置是否本地化(翻译)选项。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">localize_options</td><td>是否本地化(翻译)选项。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a91ac95c3a7bdd1daa48f079a404340e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a91ac95c3a7bdd1daa48f079a404340e5">&#9670;&nbsp;</a></span>SetOpenWindow()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TComboBox::SetOpenWindow </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>open_window</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>点击按钮时可以打开popup窗口，本函数可设置窗口的名称。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">open_window</td><td>弹出窗口的名称。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ab6e733d982bf2f0267da6671427f580e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab6e733d982bf2f0267da6671427f580e">&#9670;&nbsp;</a></span>SetOptions()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TComboBox::SetOptions </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>options</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置选项。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">options</td><td>选项。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="af51fbcbe90462444e7a5ef9925946edc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af51fbcbe90462444e7a5ef9925946edc">&#9670;&nbsp;</a></span>SetSelectedIndex()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TComboBox::SetSelectedIndex </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置第index个选项为当前选中的选项。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>选项的索引。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ab75b4e80180a100bd4578df429b83932"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab75b4e80180a100bd4578df429b83932">&#9670;&nbsp;</a></span>SetSelectedIndexByText()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TComboBox::SetSelectedIndexByText </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>根据文本设置当前选中的选项。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>原生(非翻译的文本)。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="af1f1c17a51afe25ad4e761c6ea75a6de"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af1f1c17a51afe25ad4e761c6ea75a6de">&#9670;&nbsp;</a></span>SetThemeOfPopup()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TComboBox::SetThemeOfPopup </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>theme_of_popup</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置弹出窗口的主题。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">theme_of_popup</td><td>弹出的窗口主题。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a0597efb9e21eeb0d956af9c49da9da85"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0597efb9e21eeb0d956af9c49da9da85">&#9670;&nbsp;</a></span>SetValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TComboBox::SetValue </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a></li>
<li>output/awtk_cpp.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
